﻿using System;
using System.Windows.Forms;

namespace DTM.WinApp
{
    /// <summary>
    /// Class <see cref="MainForm"/> declare main application window.
    /// </summary>
    public partial class MainForm : Form
    {
        #region Fields

        private readonly IApplicationManager _manager;

        #endregion Fields

        #region Constructors

        public MainForm(IApplicationManager manager)
        {
            DTM.Core.Utils.Validate.NotNull<ArgumentNullException>(manager, "manager");

            _manager = manager;
            InitializeComponent();
        }

        #endregion Constructors

        #region Methods

        private void editPlayersToolStripMenuItem_Click(object sender, EventArgs e)
        {
            _manager.ShowPlayersView();
        }

        #endregion Methods
    }
}